<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./js/vue.js"></script>
</head>

<body>
	<div id="app">
	<a v-bind:href="url">链接</a>
	<button v-on:click="handle">切换</button>
	</div>
    <script>
	var vm=new Vue({
	el:'#app',
	data:{
	url:'http://www.baidu.com'
	},
	methods:{
	handle(){
		this.url="http://www.aftvc.com"
		console.log(1);
	}
	}
	})
	</script>
</body>

</html>